<?php
class  Calendar{
	private $path;
	function  Calendar($path){
		$this->path = $path;
		$ifile = @fopen($path, 'r');
		if ($ifile == FALSE) exit(error($lang['l_error_cantopen'], $filename));
		$nextline = fgets($ifile, 1024);
		if (trim($nextline) != 'BEGIN:VCALENDAR') exit(error($lang['l_error_invalidcal'], $filename));
	}
	
}

?>